package businesslogic;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.ArrayList;

import dataservice.StudentAndNewsDS;
import dataservice.StudentFindCourseDS;

import vo.LoginVo;
import vo.NtssVo;
import businesslogicservice.StudentAndNewsBLS;

public class StudentAndNewsBL implements StudentAndNewsBLS{
	public boolean quitCourse(int courseNumber){
		boolean p=true;
		return p;
	}
	
	public String chooseCourse(int courseNumber,int studentNumber){
		String info="";
		try {
			StudentAndNewsDS courseList=(StudentAndNewsDS)Naming.lookup("//localhost:8888/b");
			info=courseList.chooseCourse(courseNumber, studentNumber);
		} catch(Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return info;
	}
	
	public ArrayList<NtssVo> showScore(LoginVo people){
		ArrayList<NtssVo> a=new ArrayList<NtssVo>();
		return a;
	}
}
